package com.spa.infrastructure.enums.withdraw;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum WithdrawStatusEnum {

    $10(10, "审核中"),
    $20(20, "打款中"),
    $30(30, "已打款"),
    ;

    private Integer code;
    private String desc;

    public static WithdrawStatusEnum byCode(int code) {
        for (WithdrawStatusEnum value : values()) {
            if (value.code == code) return value;
        }
        return null;
    }

}
